using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace TermFilter
{
	public class MorfologikConverter
	{
		public static void Convert(string morfologikFile, string morfologikNewFile)
		{
			StreamReader sr = new StreamReader(morfologikFile);
			StreamWriter sw = new StreamWriter(morfologikNewFile);

			while (!sr.EndOfStream)
			{
				string line = sr.ReadLine();
				string[] splited = line.Split('\t');

				if (splited.Length >= 2)
				{
					sw.WriteLine(splited[0] + " " + splited[1]);
				}
			}

			sr.Close();
			sw.Close();
		}
	}
}
